package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import com.settlement.system.common.enums.WebHookEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
* <p>
* WEB_HOOK表
* </p>
*
* @author huangrensen
* @since 2023-10-23
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WebHook extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
    * 终端类型
    */
    private String hookType;

    /**
    * WEB_HOOK地址
    */
    private String webHookUrl;

    // 是否开启 默认是开启
    private Integer status = WebHookEnum.ENABLE.getValue();
}
